#ifndef __ARCH_H__
#define __ARCH_H__

#ifdef __cplusplus
extern "C" {
#endif

static inline unsigned long rt_cpuid(void)
{
	unsigned long cpu_id;
	asm volatile("csrr %0,mhartid":"=r"(cpu_id));
	return cpu_id;
}

#endif	/* __ARCH_H__ */
